import request from '@/utils/request'
export function getRoleList() {
    return request({
        url: '/role',
        method: 'get',
    })
}
export function updateRole(data) {
    return request({
        url: "/role",
        method: "put",
        data
    })
}
export function addRole(data) {
    return request({
        url: "/role",
        method: "post",
        data
    })
}
export function deleteRole(id) {
    return request({
        url: "/role",
        method: "delete",
        params: {
            'id': id
        }
    })
}